﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace CopyFile
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("This is CopyFile: {0}",args.Length);
            for(int i=0;i<args.Length;i++){
                Console.WriteLine("参数{0}为{1}",i,args[i]);
            }

            System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"e:\");

            FileStream mystream = new FileStream(@"e:\log.txt", FileMode.Append, FileAccess.Write);

            System.IO.StreamWriter objfile = new System.IO.StreamWriter(mystream);

            objfile.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.sss"));
            objfile.Dispose();
            objfile.Close();
        }
    }
}
